<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectTeamTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::create('project_team',function(Blueprint $table){
            $table->increments('id');                           //项目团队标识
            $table->unsignedInteger('project_id')->nullable();  //项目标识
            $table->unsignedInteger('team_id')->nullable();     //团队标识
            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('project_team');
	}

}
